<?php
if( !defined('__ROOT__') ) die('Access denied');
class productModel extends Model{
	private $tb = 'product';

	public function __construct(){
		parent::__construct($this->tb);
	}

	public function add_pro( $data ){
		if( empty($data['name']) ){
			$this->error('产品名称不能为空');
			return false;
		}
		return $this->value($data)->add();
	}

	public function 
}
